package cn.tedu.csmallproductzxj.mapper;

import cn.tedu.csmallproductzxj.pojo.entity.BrandCategory;
import cn.tedu.csmallproductzxj.pojo.vo.BrandCategoryListVO;
import cn.tedu.csmallproductzxj.pojo.vo.BrandCategoryStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BrandCategoryMapper {


    int insertBrandCategory(BrandCategory brandCategory);

    int insertBatch(List<BrandCategory> brandCategoryList);

    int deleteBrandCategoryById(Long id);

    int deleteByIds(Long[] idList);

    int update(BrandCategory brandCategory);

    int count();


    int countByCategory(Long brandId);
    int countByBrandAndCategory(Long brandId,Long categoryId);

    BrandCategoryStandardVO getStandardById(Long id);

    List<BrandCategoryListVO> list();
}
